package com.by.service.impl;

import com.by.bean.Category;
import com.by.common.crud.BaseServiceImpl;
import com.by.mapper.CategoryMapper;
import com.by.query.CategoryQuery;
import com.by.service.CategoryService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryServiceImpl extends BaseServiceImpl<Category, CategoryMapper> implements CategoryService {
    @Override
    public List<Category> queryAll(CategoryQuery categoryQuery) {
        categoryQuery.setParentId(0);
        return baseMapper.queryChild(categoryQuery);
    }
}
